package com.freedom.rpc.thrift.common.loadbalancer;

import com.freedom.rpc.thrift.common.socket.TSocketPool;

public interface LoadBalancer {

	// 是否对时间敏感
	public boolean timeSensitive();

	// 处理时间,单位毫秒
	public void handleTime(long time);

	// 增加机器
	public void addMachine(String serviceWithEdition, String ip, int port);

	// 减少机器
	public void delMachine(String serviceWithEdition, String ip, int port);

	// 获取连接池
	public TSocketPool getSocketPool(String group, String service, String edition);
}
